package com.itaem.community.modules.infrastructure.authority.dto.permission;

import com.itaem.community.modules.infrastructure.authority.dto.role.RoleBriefDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>项目名称: community </p>
 * <p>文件名称: PermissionDTO </p>
 * <p>描述: [类型描述] </p>
 * <p>创建时间: 2020/11/1 </p>
 * <p>作者信息: tomato</p>
 *
 * @author tomato
 * @version v1.0
 */
@Data
@ApiModel("权限信息传输对象")
public class PermissionDTO {

    @ApiModelProperty(value = "权限id")
    private Integer id;

    @ApiModelProperty(value = "权限内容")
    private String content;

    @ApiModelProperty(value = "拥有此权限的角色清单")
    private List<RoleBriefDTO> roles;
}
